function combine<Type>(arr1: Type[], arr2: Type[]): Type[] {
  return arr1.concat(arr2);
}

combine([1, 2, 3], [4, 5, 6]);
combine<number | string>([1, 2, 3], ["4", "5", "6"]); //可以指定类型
